#ifndef _RENZO_ANIMATOR_KEY_FRAME_
#define _RENZO_ANIMATOR_KEY_FRAME_

#include "RenzoAnimator.h"

namespace Renzo
{
class AnimatorKeyFrame : public Animator
{
public:
	AnimatorKeyFrame(void);
	~AnimatorKeyFrame(void);

public:
	void initialize(int curFrame, int nbFrames, int facesPerFrame, int verticesPerFrame);
	
	int getCurrentFrame() const;
	int getFrameCount() const;
	int getFacesPerFrame() const;
	int getVerticesPerFrame() const;

	void nextFrame();
	void update(int delta);
protected:
	int curTimeElapsed;
	int frameTimeElapsed;

	int curFrame;
	int nbFrames;
	int nbFacesPerFrame;
	int nbVerticesPerFrame;
};
}

#endif
